package com.alkaid.anime.service;

import com.alkaid.commons.entity.Comment;
import com.alkaid.commons.ex.UnknownErrorException;

import java.util.List;

/**
 * @author Kylin
 * 点赞
 */
public interface CommentService {
    /**
     * 查询评论列表
     *
     * @param animeId the anime id
     * @return the thumb
     * @throws UnknownErrorException the unknown error exception
     */
    List<Comment> getComments(Integer animeId) throws UnknownErrorException;

    /**
     * 发表评论
     *
     * @param select the select
     * @throws UnknownErrorException the unknown error exception
     */
    void addComment(Comment select) throws UnknownErrorException;
}
